<?php include(sfConfig::get('sf_lib_dir').'/FusionCharts/FusionCharts.php') ?>
<div id="chart_space">
<?php //Create the chart - Column 3D Chart with data from Data/Data.xml
  $xml = html_entity_decode($strXML,ENT_QUOTES);
  echo renderChart("/fusionCharts/charts/MSLine.swf", "", $xml, "myFirst", 700, 400, false, true);
  ?>
  <div id="menu-graph">
  	<div id="legend-graph">
            My <input name="my_check" id="my_check" type="checkbox" <?php if ($my==1) echo 'checked="checked"'; ?>
            onchange="loadIndividualChart(<?php echo $month; ?>,<?php if ($my==1) { echo '0'; } else { echo '1'; } ?>,<?php echo $corporate; ?>);" />
            Corporate <input name="corporate_check" id="corporate_check" type="checkbox"
            <?php if ($corporate==1) echo 'checked="checked"'; ?> onchange="loadIndividualChart(<?php echo $month; ?>,<?php echo $my; ?>,<?php if ($corporate==1) { echo '0'; } else { echo '1'; } ?>);" />
        </div>
        <span class="rango-graph">Graph Range
          <select name="months_chart" id="months_chart" onchange="loadIndividualChart(this.value,<?php echo $my; ?>,<?php echo $corporate; ?>);">
              <option value="1" <?php if ($month==1) echo 'selected="selected"'; ?>>1</option>
              <option value="2" <?php if ($month==2) echo 'selected="selected"'; ?>>2</option>
              <option value="3" <?php if ($month==3) echo 'selected="selected"'; ?>>3</option>
              <option value="4" <?php if ($month==4) echo 'selected="selected"'; ?>>4</option>
              <option value="5" <?php if ($month==5) echo 'selected="selected"'; ?>>5</option>
              <option value="6" <?php if ($month==6) echo 'selected="selected"'; ?>>6</option>
          </select>
        </span>
  </div>
</div>
